package it.truestoryfactory.tsq.game.util;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.NumberPicker;

public class MyNumberPicker extends NumberPicker {
	
	public MyNumberPicker(Context context, AttributeSet attrs, int defStyle) {
		super(context,attrs,defStyle);
		processAttributesSet(attrs);	
	
	}
	
	public MyNumberPicker(Context context, AttributeSet attrs) {
		super(context, attrs);
		processAttributesSet(attrs);	
	}
	
	public MyNumberPicker(Context arg0) {
		super(arg0);
	}

	private void processAttributesSet(AttributeSet attrs) {
		this.setMinValue(attrs.getAttributeIntValue(null, "min", 0));
		this.setMaxValue(attrs.getAttributeIntValue(null, "max", 0));
	}
	
}
